package com.ruoyi.app.controller.order.service;

import com.ruoyi.common.entity.BO.StatusEnumBO;
import com.ruoyi.common.entity.DO.order.ShopCreditOrderDO;
import com.ruoyi.common.entity.DO.order.ShopOrderDO;
import com.ruoyi.common.entity.VO.order.ShopOrderSearchVO;
import com.ruoyi.common.entity.VO.order.ShopOrderVO;

import java.util.List;

public interface IShopCreditOrderService {
    /**
     * 获取订单列表
     *
     * @param shopOrderSearchVO
     * @return
     */
    List<ShopCreditOrderDO> searchList(ShopOrderSearchVO shopOrderSearchVO);


    List<StatusEnumBO> searchOrderStatusCount(Long memberId);

    /**
     * 获取订单详情
     * @param memberId
     * @param orderSn
     * @return
     */
    ShopCreditOrderDO getExchangeCode(Long memberId,String orderSn);

    /**
     * 创建订单
     * @param creditOrderDO
     * @return
     */
    void create(ShopCreditOrderDO creditOrderDO);

//    /**
//     * 删除订单
//     * @param memberId 会员ID
//     * @param orderSn 订单号
//     * @return
//     */
//    int delete(Long memberId, String orderSn);

}
